# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=dinit-alpine
pkgver=0_git20240128
pkgrel=0
_commit="9a5e07defa5d830c1a9ac59214af353c017daee8"
pkgdesc="Various dinit service files used to boot Alpine"
url="https://gitlab.alpinelinux.org/PureTryOut/dinit-alpine"
arch="noarch"
license="Apache-2.0"
depends="
	dinit
	findmnt
	util-linux-login
	"
source="$pkgname-$_commit.tar.gz::https://gitlab.alpinelinux.org/PureTryOut/dinit-alpine/-/archive/$_commit.tar.gz"
options="!check" # No tests
builddir="$srcdir/$pkgname-$_commit"

package() {
	mkdir -p "$pkgdir"/lib/dinit.d
	cp -r services/* "$pkgdir"/lib/dinit.d/
}

sha512sums="
c7b3dc45d171e4923a8dce7cbf8b954cf8cefec768ca280f421ca8c3ad5267d6c680a33f14a8b6d356512d5ad0452e8258fbb6ce538911b0a609b01a92a29686  dinit-alpine-9a5e07defa5d830c1a9ac59214af353c017daee8.tar.gz
"
